package com.inner;

import com.enumm.A;

public class text {
    public static void main(String[] args) {
      //en.X=0;此路不通
        //枚举可以增强可读性，外加限制性
        en a=en.Y;
        provideInfo(A.BOY);
    }

    public static void provideInfo(A sex){
        switch (sex) {
            case BOY -> {
                System.out.println("傻逼");
                System.out.println("测试");
            }
            case GIRL -> System.out.println("大傻逼");
        }
    }
}

